package com.eastcompeace.exception;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalException {

	@ExceptionHandler
	public ResponseEntity<String> processException(Exception e) {
		String msg = "all exception " + e.getMessage();
		System.out.println(msg);
		return ResponseEntity.ok(msg);
	}
}